/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2024.
 * Description: a high performance way to acquire cpu and memory stat
 * Author: Pang LiYuan
 * Create: 2024-04-16
 */
#ifndef __LINUX_HPSTAT_H
#define __LINUX_HPSTAT_H

#ifdef CONFIG_RTOS_HP_OBTAIN_STAT_CPU
#define RTOS_CPU_USAGE_MAX_CPU 128

extern _Atomic(u64) cpu_idle_timeset[RTOS_CPU_USAGE_MAX_CPU];

void rtos_hpstat_save_entry_idle(int cpu);
void rtos_hpstat_save_total_idle(int cpu);
#else
static inline void rtos_hpstat_save_entry_idle(int cpu) {}
static inline void rtos_hpstat_save_total_idle(int cpu) {}
#endif

#endif
